<!doctype html>
<html lang="ch">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>记事本</title>
    <link href="./css/index.css" type="text/css" rel="stylesheet">
    <script src="js/vue.js"></script>
    <script src="js/axios.js"></script>
</head>

<body>

<section id="todoapp">
    <header class="header">
        <h1>简单备忘录</h1>
        <input v-model="inputValue" @keyup.enter="add" placeholder="请输入任务" autocomplete="off" autofocus
               class="new-todo">
        <button class="one" @click="submit">
        <img src="img/submit.png" alt="无法加载图片" width="80" height="65" style="" id="submit">
        </button>
    </header>
    <section class="main">
        <ul class="todo-list">
            <li class="todo" v-for="(item,index) in list">
                <div class="view">
                    <span class="index">{{ index + 1 }}.</span>
                    <label>{{ item }}</label>
                    <button class="destroy" @click="remove(index)"></button>
                </div>
            </li>
        </ul>

    </section>
    <footer class="footer">
        <span class="todo-count" v-if="list.length!==0">
            <strong>{{ list.length }}</strong> items left
        </span>
        <button class="clear-completed" @click="clear" v-show="list.length!==0">Clear</button>
    </footer>

</section>


<footer class="info">

</footer>
<script src="js/example.js"></script>
</body>
</html>